package com.kaikeba.util;

import com.google.gson.Gson;

/**
 * @description:用于将数据转换成JSON格式
 * @author: ManolinCoder
 * @time: 2021/8/28
 */
public class JSONUtil {
    private static Gson g = new Gson();
    public static String toJSON(Object obj){
        return g.toJson(obj);
    }
}
